<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>下单成功</title>
    <link rel="stylesheet" href="../../../css/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="../../../css/aui.css" />
    <link rel="stylesheet" href="../../../css/index/train/order_success.css" />
</head>

<body>
    <!--头部start-->
    <header class="aui-bar aui-bar-nav" id="header">
        <div class="aui-title">
            <span class="">填写订单</span>
        </div>
        <a class="aui-pull-right aui-btn aui-btn-outlined" style="border: 0;" onclick="backHome();">
            <span class="aui-iconfont aui-icon-home"></span>
        </a>
    </header>
</body>

<script type="text/javascript" src="../../../script/aui/api.js"></script>
<script type="text/javascript" src="../../../script/common.js"></script>
<script type="text/javascript" src="../../../script/extend/jquery-3.3.1.min.js"></script>
<script>
    apiready = function(){
        api.parseTapmode();

        //设置高度
        var header = $api.byId('header');
        $api.fixStatusBar(header);

        var headerPos = $api.offset(header),
            frameheight = api.winHeight - $api.byId('header').offsetHeight;

        api.openFrame({
            name: 'order_success_frm',
            url: './order_success_frm.html',
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: frameheight
            },
            pageParam: {
                price : api.pageParam.price
            },
            bgColor: 'rgba(0,0,0,0)',
            vScrollBarEnabled: true,
            hScrollBarEnabled: true
        });
        api.addEventListener({
          name : 'keyback'
        }, function(ret, err) {
          api.closeToWin({
              name: 'main'
          });
        })
    }
</script>

</html>
